﻿
#include <iostream>
#include "../../win_com/xx_com.hpp"
#include "../../win_com/xx_mem.hpp"
#include "../../win_com/xx_inline_hook.hpp"
#include "../../win_com/xx_remotethread_inject.hpp"




int main(int argc, char** argv)
{

    auto dll_path = xx_get_arg(argc, argv, "-dll_path");
    if (dll_path) {
        printf("-dll_path=%s\n", dll_path);
    }

    auto pid = xx_get_arg(argc, argv, "-pid");
    if (pid) {
        printf("-pid=%s\n", pid);
        //EnableDebugPrivilege();
        remotethread_inject(atoi(pid), dll_path);
    }

    return 0;
}


